package com.kingzoder.food.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kingzoder.food.common.base.LogicDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author ZoderKing
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("recipe")
public class Recipe extends LogicDO {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String description;
    private String imageUrl;
    private Integer cookTime;
    private String difficulty;
    private Integer servings;
    private Double rating;
}
